from django.shortcuts import render, HttpResponse, redirect
from django.views import View

from iClouds.apiSerializers import *


class index(View):
    def get(self, request):
        r = PaySpotList.objects.all()  # filter(status=1)
        dr = ModelPaySpotListSerializer(r, many=True).data
        return render(request, "index.html", {"data": dr})

    def post(self, request):
        return HttpResponse("POST 方法")
